package com.mz.ieann.aide.city.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> des
 * <p>
 *
 * @author Created by Administrator
 * @date on 2021 2021/10/24 17:14
 */
public class CityResult implements Parcelable {

    private List<City> result;
    private String status;
    private String message;

    public CityResult(){

    }

    protected CityResult(Parcel parcel) {
        result = parcel.createTypedArrayList(City.CREATOR);
        status = parcel.readString();
        message = parcel.readString();
    }

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        parcel.writeTypedList(result);
        parcel.writeString(status);
        parcel.writeString(message);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<CityResult> CREATOR = new Creator<CityResult>() {
        @Override
        public CityResult createFromParcel(Parcel in) {
            return new CityResult(in);
        }

        @Override
        public CityResult[] newArray(int size) {
            return new CityResult[size];
        }
    };

    public List<City> getResult() {
        return result;
    }

    public void setResult(List<City> result) {
        this.result = result;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
